package com.example.demo02.mapstruct;

import com.example.demo02.dto.excelBean.BlackSpecialCarExcelBean;
import com.example.demo02.entity.SysParameter;
import com.example.demo02.entity.TcSpecialcar;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring",uses = DateFormatMapStruct.class)
public interface ExcelBeanToEntityStruct {
    @Mapping(target = "createTime",source = "createTime",dateFormat = "yyyy-MM-dd")
    @Mapping(target = "parkpotid",source = "parkpotId")
    TcSpecialcar toTcSpecialcar(BlackSpecialCarExcelBean blackSpecialCarExcelBean);
}
